package com.kaifamiao.demo.d0804;

import java.util.Arrays;

public class Demo02 {

    public static void main(String[] args) {
//        String str = "七夕.牛郎.织女";

//        String str = ".1.2.3.4.5";
//        String[] strs = str.split("\\.");
        String str = "abcdefg";
        // 把字符串每个字符都是一个元素
//        String[] strs = str.split("");
        String[] strs = str.split("", 100);
        System.out.println(strs.length);
        System.out.println(Arrays.toString(strs));


        String s = String.join("", "a", "b", "c", "d");
        System.out.println(s);

    }
}
